package com.company;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class shili4 {
    ApplicationContext context = new ClassPathXmlApplicationContext("" +
            "applicationContext.xml",
            "applicationContext-dao.xml",
            "applicationContext-service.xml");


    String[] configs = {"" +
            "\"applicationContext.xml\",\n" +
            "            \"applicationContext-dao.xml\",\n" +
            "            \"applicationContext-service.xml\""};
    ApplicationContext ctx = new ClassPathXmlApplicationContext(configs);
}
